
//  ImageLoadingOperation.h


#import <UIKit/UIKit.h>

extern NSString *const ResultKey;
extern NSString *const ImageKey;
extern NSString *const URLResultKey;

@protocol ImageLoadingDelegate

- (void)didLoadImage:(NSURL *)imageURL Image:(UIImage *)image;

@end


@interface ImageLoadingOperation : NSOperation {
    NSURL *imageURL;
    id target;
    SEL action;
	NSMutableArray *notifyList;
	
	NSLock *notifyLock;
}

- (id)initWithImageURL:(NSURL *)imageURL target:(id)target action:(SEL)action;
- (void)addNotify:(id<ImageLoadingDelegate>)delegate;

@end
